import Vue from 'vue';
import Vuex from 'vuex';
import { storage } from '../utils/utils';
import mutations from './mutations';
import actions from './actions';

Vue.use(Vuex);

export default new Vuex.Store({
  modules: {

  },
  state: {
    isCollapse: storage.get('isCollapse') || false,
  },
  getters: {

  },
  mutations: {
    ...mutations,
  },
  actions: {
    ...actions
  }
})